package com.ssy.lingxi.platform.template.service.model.vo.web;

import com.ssy.lingxi.common.constant.tree.Node;
import com.ssy.lingxi.platform.template.service.model.vo.adorn.BrandVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 平台品类树 - VO
 * @author fhj
 * @date 2020/11/03
 * @version 2.0.0
 */
@Data
public class CategoryTreeVO {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "父节点id")
    private String parentId;

    @ApiModelProperty(value = "节点名称")
    private String title;

    @ApiModelProperty(value = "是否选中")
    private Boolean checked = false;

    @ApiModelProperty(value = "子节点集合")
    private List<Node> children = new ArrayList<>();

    @ApiModelProperty(value = "品牌集合")
    private List<BrandVO> brandList = new ArrayList<>();
}
